package com.xmfh.wemedia.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: lanlan
 * @Data: 2022/4/5 19:59
 * @Description:
 */
@Mapper
public interface DdAddViewsMapper {

//    @Update("update #{type} set views=views+1 where id=#{id}")
    int addViews(@Param("type") String type,@Param("id") int id);
}
